import auth from './auth';

export default {
  title: function(title) {
    title = title ? title + ' - 幸福汇' : '幸福汇';
    window.document.title = title;
  },
  // 判断字符串长度
  stringLength: function(str, length) {
    return str.replace(/[\u0391-\uFFE5]/g, 'aa').length < length;
  },
  auth: auth
};
